namespace CaltechSoft.Service.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class Customer : DbMigration
    {
        public override void Up()
        {
            AddColumn("dbo.Customers", "LoginUsername", c => c.String());
            AlterColumn("dbo.Certificate", "CreatedBy", c => c.String());
            AlterColumn("dbo.Certificate", "UpdatedBy", c => c.String());
            AlterColumn("dbo.CertificateStandard", "CreatedBy", c => c.String());
            AlterColumn("dbo.CertificateStandard", "UpdatedBy", c => c.String());
            AlterColumn("dbo.Customers", "CreatedBy", c => c.String());
            AlterColumn("dbo.Customers", "UpdatedBy", c => c.String());
            AlterColumn("dbo.Equipment", "CreatedBy", c => c.String());
            AlterColumn("dbo.Equipment", "UpdatedBy", c => c.String());
            AlterColumn("dbo.QuoteItems", "CreatedBy", c => c.String());
            AlterColumn("dbo.QuoteItems", "UpdatedBy", c => c.String());
            AlterColumn("dbo.Quotes", "CreatedBy", c => c.String());
            AlterColumn("dbo.Quotes", "UpdatedBy", c => c.String());
            AlterColumn("dbo.WorkOrderDetails", "CreatedBy", c => c.String());
            AlterColumn("dbo.WorkOrderDetails", "UpdatedBy", c => c.String());
            AlterColumn("dbo.WorkOrders", "CreatedBy", c => c.String());
            AlterColumn("dbo.WorkOrders", "UpdatedBy", c => c.String());
        }
        
        public override void Down()
        {
            AlterColumn("dbo.WorkOrders", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.WorkOrders", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.WorkOrderDetails", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.WorkOrderDetails", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Quotes", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Quotes", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.QuoteItems", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.QuoteItems", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Equipment", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Equipment", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Customers", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Customers", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.CertificateStandard", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.CertificateStandard", "CreatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Certificate", "UpdatedBy", c => c.Int(nullable: false));
            AlterColumn("dbo.Certificate", "CreatedBy", c => c.Int(nullable: false));
            DropColumn("dbo.Customers", "LoginUsername");
        }
    }
}
